<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: Normalization</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__normalization.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Normalization<div class="ingroups"><a class="el" href="group__util.html">Utilities Library (jetson-utils)</a> &raquo; <a class="el" href="group__cuda.html">CUDA</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Normalize the pixel intensities of an image between two ranges.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga982a42f089e22a0caa6921435be3ce62"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__normalization.html#ga982a42f089e22a0caa6921435be3ce62">cudaNormalize</a> (float *input, const float2 &amp;input_range, float *output, const float2 &amp;output_range, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga982a42f089e22a0caa6921435be3ce62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize the pixel intensities of a floating-point grayscale image between two scales.  <a href="#ga982a42f089e22a0caa6921435be3ce62">More...</a><br /></td></tr>
<tr class="separator:ga982a42f089e22a0caa6921435be3ce62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cd6a648c82695d4c856e5acefddad0c"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__normalization.html#ga9cd6a648c82695d4c856e5acefddad0c">cudaNormalize</a> (float3 *input, const float2 &amp;input_range, float3 *output, const float2 &amp;output_range, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga9cd6a648c82695d4c856e5acefddad0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize the pixel intensities of a float3 RGB/BGR image between two scales.  <a href="#ga9cd6a648c82695d4c856e5acefddad0c">More...</a><br /></td></tr>
<tr class="separator:ga9cd6a648c82695d4c856e5acefddad0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga726290f57cf01728290e0fe3572a1d7c"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__normalization.html#ga726290f57cf01728290e0fe3572a1d7c">cudaNormalize</a> (float4 *input, const float2 &amp;input_range, float4 *output, const float2 &amp;output_range, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga726290f57cf01728290e0fe3572a1d7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize the pixel intensities of a float4 RGBA/BGRA image between two scales.  <a href="#ga726290f57cf01728290e0fe3572a1d7c">More...</a><br /></td></tr>
<tr class="separator:ga726290f57cf01728290e0fe3572a1d7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2d5164603e6d889b6603f2de46bab2ea"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__normalization.html#ga2d5164603e6d889b6603f2de46bab2ea">cudaNormalize</a> (void *input, const float2 &amp;input_range, void *output, const float2 &amp;output_range, size_t width, size_t height, <a class="el" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format)</td></tr>
<tr class="memdesc:ga2d5164603e6d889b6603f2de46bab2ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize the pixel intensities of an image between two scales.  <a href="#ga2d5164603e6d889b6603f2de46bab2ea">More...</a><br /></td></tr>
<tr class="separator:ga2d5164603e6d889b6603f2de46bab2ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Normalize the pixel intensities of an image between two ranges. </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga982a42f089e22a0caa6921435be3ce62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga982a42f089e22a0caa6921435be3ce62">&#9670;&nbsp;</a></span>cudaNormalize() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cudaError_t cudaNormalize </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>input_range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>output_range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normalize the pixel intensities of a floating-point grayscale image between two scales. </p>
<p>For example, convert an image with values between <code>[0,1]</code> to <code>[0,255]</code> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_range</td><td>the range of pixel values of the input image (e.g. <code>[0,1]</code>) </td></tr>
    <tr><td class="paramname">output_range</td><td>the desired range of pixel values of the output image (e.g. <code>[0,255]</code>) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9cd6a648c82695d4c856e5acefddad0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9cd6a648c82695d4c856e5acefddad0c">&#9670;&nbsp;</a></span>cudaNormalize() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cudaError_t cudaNormalize </td>
          <td>(</td>
          <td class="paramtype">float3 *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>input_range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float3 *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>output_range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normalize the pixel intensities of a float3 RGB/BGR image between two scales. </p>
<p>For example, convert an image with values between <code>[0,1]</code> to <code>[0,255]</code> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_range</td><td>the range of pixel values of the input image (e.g. <code>[0,1]</code>) </td></tr>
    <tr><td class="paramname">output_range</td><td>the desired range of pixel values of the output image (e.g. <code>[0,255]</code>) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga726290f57cf01728290e0fe3572a1d7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga726290f57cf01728290e0fe3572a1d7c">&#9670;&nbsp;</a></span>cudaNormalize() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cudaError_t cudaNormalize </td>
          <td>(</td>
          <td class="paramtype">float4 *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>input_range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float4 *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>output_range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normalize the pixel intensities of a float4 RGBA/BGRA image between two scales. </p>
<p>For example, convert an image with values between <code>[0,1]</code> to <code>[0,255]</code> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_range</td><td>the range of pixel values of the input image (e.g. <code>[0,1]</code>) </td></tr>
    <tr><td class="paramname">output_range</td><td>the desired range of pixel values of the output image (e.g. <code>[0,255]</code>) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2d5164603e6d889b6603f2de46bab2ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2d5164603e6d889b6603f2de46bab2ea">&#9670;&nbsp;</a></span>cudaNormalize() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cudaError_t cudaNormalize </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>input_range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>output_range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a>&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normalize the pixel intensities of an image between two scales. </p>
<p>For example, convert an image with values between <code>[0,1]</code> to <code>[0,255]</code> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_range</td><td>the range of pixel values of the input image (e.g. <code>[0,1]</code>) </td></tr>
    <tr><td class="paramname">output_range</td><td>the desired range of pixel values of the output image (e.g. <code>[0,255]</code>) </td></tr>
    <tr><td class="paramname">format</td><td>the image format - valid formats are gray32f, rgb32f/bgr32f, and rgba32f/bgra32f. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Tue Jul 14 2020 21:59:34 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
